// RectWindow.h
// by Charles Mc Auley
// "Programming AutoCAD 2000 with ObjectARX"


#ifndef RECTWINDOW_H
#define RECTWINDOW_H

class RectWindow : public AcDbObject
{
	public:

		ACRX_DECLARE_MEMBERS(RectWindow);
		
		RectWindow();	// Constructor
		~RectWindow();	// Destructor

		void drawWindow(AcDbBlockTableRecord* pBlkTableRecord);
				
		void setWindowRows(Adesk::Int32 rowQty);
		void setWindowCols(Adesk::Int32 colQty);
		void setWindowHeight(double windHeight);
		void setWindowLength(double windLength);
		void setWindowStartPoint(AcGePoint2d lowLeftPoint);

		double getWindowLength() const;
		double getWindowHeight() const;

		Adesk::Int32 getWindowRows() const;
		Adesk::Int32 getWindowCols() const;

		AcGePoint2d getWindowStartPoint() const;

		// AcDbObject persistence protocol
		Acad::ErrorStatus dwgInFields(AcDbDwgFiler* filer);
		Acad::ErrorStatus dwgOutFields(AcDbDwgFiler* filer) const;
		Acad::ErrorStatus dxfInFields(AcDbDxfFiler* filer);
		Acad::ErrorStatus dxfOutFields(AcDbDxfFiler* filer) const;

		void addWindowInfo(RectWindow*);

		char m_strWindType[10];

	private:

		Adesk::Int32 m_nrows;
		Adesk::Int32 m_ncols;
		double m_drectFrameLen;
		double m_drectFrameHt;
		AcGePoint2d m_lowLeftPt;
};

#endif